const CityReducer = (prevState = {
    show: true,
    cityName: '北京'
}, action) => {

    let newState = { ...prevState }

    switch (action.type) {
       
        case 'selectCity':
            newState.cityName = action.query
            return newState
        default:
            return prevState
    }

}
export default CityReducer